from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
import time

from osv import fields, osv
from tools.translate import _
import decimal_precision as dp
import netsvc


class stock_warehouse_orderpoint_rule(osv.osv):
    _name = "stock.warehouse.orderpoint.rule"
    _description = "Product Rule"
    _columns = {
        'name': fields.char('Name', size=64, invisible=True),
        'date_from': fields.date('Date From', required=True),
        'date_to': fields.date('Date To', required=True),
        'qty_min': fields.float('Qty min', digits=(16, 2)),
        'qty_max': fields.float('Qty max', digits=(16, 2)),
        'rule_id': fields.many2one('stock.warehouse.orderpoint', 'Rule', invisible=True),
    }


stock_warehouse_orderpoint_rule()
